home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Screenblankers
/
BlitzBlank 2.60
/
Developer
/
BlitzBlank.bb2
< prev
next >
Wrap
Text File
|
1996-09-26
|
5KB
|
96 lines
#BLITZBLANK_H=-1
; XINCLUDE "exec/ports.h"
; XINCLUDE "exec/tasks.h"
;/****************************************/
;/* $VER: BlitzBlank.h 2.60 (16.05.95) */
;/****************************************/
;/********************************/
;/* Stuff for blitzblank.library */
;/********************************/
#BLITZBLANKLIB_VER=9
;/*******************************************************************/
;/* The different kinds of GUI-objects for a module's config-window */
;/*******************************************************************/
#BB_PGroup=1 ;/* Indicates the start of a new page group */
#BB_PGroup_End=2 ;/* Indicates the end of the page group */
#BB_VGroup=3 ;/* Indicates the start of a new vertical group */
#BB_VGroup_End=4 ;/* Indicates the end of the vertical group */
#BB_Check=5 ;/* Checkmark, uses set field in BB_Object */
#BB_String=6 ;/* Textgadget, uses max/contents fields in BB_Object */
#BB_File=7 ;/* Stringgadget with attached filerequester */
#BB_Slider=8 ;/* Slidergadget, uses min/max/set fields in BB_Object */
#BB_Cycle=9 ;/* Cyclegadget, uses set/contents in BB_Object */
#BB_Dummy=10 ;/* Dummy, if you want no gadgets at all */
#BB_Font=11 ;/* Stringgadget with attached fontrequester */
#BB_Dir=12 ;/* Stringgadget with attached filerequester, Dirs only */
;/*****************************************/
;/* Flags used in BB_Message's flag-field */
;/*****************************************/
#BBF_Screenmode=1 LSL 0 ;/* Allows screenmode-selection */
#BBF_Colors=1 LSL 1 ;/* Allows screendepth-selection */
#BBF_Sample=1 LSL 2 ;/* Not supported yet */
#BBF_NoWatch=1 LSL 3 ;/* Eats no CPU-time, so needs no checking */
#BBF_NoScreen=1 LSL 4 ;/* Wants no screen from BlitzBlank */
#BBF_FirstScreen=1 LSL 5 ;/* Wants pointer to screen in front, be CAREFUL with this! */
#BBF_CloneScreen=1 LSL 6 ;/* Wants a clone from the FrontScreen */
#BBF_AmigaOnly=1 LSL 7 ;/* Not supported yet */
#BBF_NoMouseBlank=1 LSL 8 ;/* No mouseblanking from BlitzBlank wanted */
#BBF_NoKeyPass=1 LSL 9 ;/* No keypassing necessary (no mouseblanking, no own active window */
#BBF_BigWindow=1 LSL 10 ;/* The blankwindow fills the whole screen */
#BBF_Interleaved=1 LSL 11 ;/* BlitzBlank TRIES to give you a screen with an Interleaved BitMap */
;/*****************************************/
;/* The structure, that holds config-data */
;/*****************************************/
NEWTYPE .BB_Object
*next_.BB_Object ;/* Pointer to next object or NULL if last object */
type_.w ;/* What kind of GUI-object this is */
min_.l ;/* Minimum value for BB_Slider */
max_.l ;/* Maximum value for BB_Slider, max length of BB_String */
set_.l ;/* Value of BB_Slider, state of BB_Checkmark, BB_Cycle */
*contents_.b ;/* Pointer to buffer for BB_String, pointer to stringarray for BB_Cycle */
*label_.b ;/* Label for ALL objects */
End NEWTYPE
;/*****************************************************/
;/* The message to send to BlitzBlank/BlitzBlankPrefs */
;/*****************************************************/
NEWTYPE .BB_Message
msg_.Message ;/* Normal Exec-Message-structure */
flags_.l ;/* Flags for this module */
*infotext_.b ;/* Pointer to infotext for this module */
*first_.BB_Object ;/* Pointer to first BB_Object or NULL for Info-action */
modpri_.w ;/* not of use, if you use the library */
*path_.b ;/* Path to directory for module-data */
*blitzblank_.Task ;/* not of use, if you use the library */
End NEWTYPE
;/***************************************/
;/* The BlitzBlank-Screeninfo-structure */
;/***************************************/
NEWTYPE .BB_Screeninfo
xpos_.w ;/* should be 0 */
ypos_.w ;/* should be 0 */
width_.w ;/* User-selected screen-width */
height_.w ;/* User-selected screen-height */
depth_.w ;/* User-selected screen-depth */
mode_.l ;/* User-selected screen-mode */
*bbscreen_.Screen ;/* module screen */
*bbwindow_.Window ;/* blank window */
mindepth_.w ;/* desired minimum depth or 0 */
maxdepth_.w ;/* desired maximum depth or 0 */
xpixelsize.w ;/* X-size of the pixels */
ypixelsize.w ;/* Y-size of the pixels */
;/* If you have a given width of something and want to */
;/* calculate the aspect-correct height, then do: */
;/* height=width*screeninfo->xpixelsize/screeninfo->ypixelsize; */
End NEWTYPE
;/************************************************************/
;/* Flag-definition for BBL_AllocBitMap()/BBL_AllocRastPort, */
;/* if you don't have the V39-includes */
;/************************************************************/
#BMB_CLEAR=0
#BMB_DISPLAYABLE=1
#BMB_INTERLEAVED=2
#BMF_CLEAR=1 LSL #BMB_CLEAR
#BMF_DISPLAYABLE=1 LSL #BMB_DISPLAYABLE
#BMF_INTERLEAVED=1 LSL #BMB_INTERLEAVED